﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AppList.aspx.cs" Inherits="Manage_System_AppList" %>

<html>
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" type="text/css" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" />
</head>
<body>
    <%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
    <%=ManageHelper.PageErrMsg()!=""?"<div class='msg_failed'>"+ManageHelper.PageErrMsg()+"</div>":""%>
    <table width="95%" align="center">
        <tr>
            <td align="right">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <input type="submit" name="AddGroup" value="添加应用程序" onclick="ymPrompt.win('AppItem.aspx',450,280,'添加应用程序管理',null,null,null,true);"
                                id="AddGroup" class="button" />
                        </td>
                        <td>
                            <a href="FlagList.aspx?ft=0"></a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <div class="column">
        <div class="columntitle">
            应用程序管理</div>
        <table cellspacing="0" cellpadding="0" rules="all" align="center" border="0" id="MyDataGrid"
            style="border-width: 0px; width: 100%; border-collapse: collapse;">
            <tr class="summary-title" align="center" style="height: 25px;">
                <td width="60">
                    编号</td>
                <td align="left">
                    应用程序名称</td>
<%--                <td align="left">
                    内容模型</td>--%>
                <td align="left">
                    应用程序网址</td>
                <td width="60">
                    启用</td>
                <td width="120">
                    创建时间</td>
                <td width="100">
                    操作</td>
            </tr>
            <%
                foreach (KeRui.Model.SysApp model in listSysApp)
                {
            %>
            <tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';"
                style="height: 25px;">
                <td align="center">
                    <%=model.AppID%>
                </td>
                <td>
                    <%=model.AppName%>
                </td>
<%--                <td>
                    <%=bllCmsModel.GetModel(model.ModelID).ModelName %>
                </td>--%>
                <td>
                    <%=model.AppUrl%>
                </td>
                <td align="center">
                    <%=model.IsUsing?"是":"<font style=\"color:red\">否</font>"%>
                </td>
                <td>
                    <%=model.CreateTime%>
                </td>
                <td align="center">
                    <a href="javascript:ymPrompt.win('Appitem.aspx?act=edit&id=<%=model.AppID %>',450,280,'修改许可证',null,null,null,true);"
                        onclick="">修改</a> | <a href='Appitem.aspx?id=<%=model.AppID %>&act=del' onclick="javascript:return confirm('此操作将会删除名称为为“<%=model.AppName %>的应用程序”，确认吗？');">
                            删除</a>
                </td>
            </tr>
            <%
                } 
            %>
        </table>
    </div>
</body>
</html>
